package partner_user

import (
	"gitee.com/theegg/go-brick/app/modules/partner_api/partner_user/partner_user_api"
	"github.com/gin-gonic/gin"
)

func InitPartnerUserRoute(routerGroup *gin.RouterGroup) {
	// 用户
	routerGroup.POST("/user/list", partner_user_api.UserList)
	routerGroup.POST("/user/add", partner_user_api.UserAddByAdmin)
	routerGroup.POST("/user/del", partner_user_api.UserDel)
	routerGroup.POST("/user/tree", partner_user_api.UserTree)
	routerGroup.POST("/user/state", partner_user_api.UserModifyState)
	routerGroup.POST("/user/finance", partner_user_api.UserFinance)
	routerGroup.POST("/user/lock", partner_user_api.UserLock)

	// 用户角色
	routerGroup.POST("/user/role/list", partner_user_api.UserRoleList)
	routerGroup.POST("/user/role/state", partner_user_api.UserRoleState)
	routerGroup.POST("/user/role/add", partner_user_api.UserRoleAdd)
	routerGroup.POST("/user/role/edit", partner_user_api.UserRoleEdit)
	routerGroup.POST("/user/role/permission/get", partner_user_api.UserRoleGetPermissions)
	routerGroup.POST("/user/role/permission/edit", partner_user_api.UserRoleEditPermissions)

	// 账户流转
	routerGroup.POST("/user/account_flow/list", partner_user_api.GetAccountFlowReportList)
	routerGroup.POST("/user/account_flow/detail", partner_user_api.GetAccountFlowReportDetail)
}
